﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SDMX_ML.Framework.Metadata
{
    /// <summary>
    /// TargetValuesType.
    /// </summary>
    public class TargetValuesType
    {
        private List<ComponentValueType> _componentValue;

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="componentValue">ComponentValue.</param>
        public TargetValuesType(ComponentValueType componentValue)
        {

            if (componentValue != null)
            {
                _componentValue = new List<ComponentValueType>();
                _componentValue.Add(componentValue);
            }
            else
            {
                throw new Exception("Min. one componentValue is required in TargetValuesType.");
            }
        }

        /// <summary>
        /// ComponenValue.
        /// </summary>
        public List<ComponentValueType> ComponentValue
        {
            get { return _componentValue; }
            set { _componentValue = value; }
        }
    }
}
